package com.fishingwithme.domain.settings;

import com.fishingwithme.domain.common.AuditInfo;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName(autoResultMap = true)
public class Feedback extends AuditInfo {

    @TableField(fill = INSERT)
    private Long id;

    private String contact;

    private FeedbackType type;

    private String content;

    @TableField(typeHandler = com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
    private List<String> imageUrl;

}
